/*
 * av_format.h
 *
 *  Created on: 2012-7-11
 *      Author: ThinkPad
 */

#ifndef AV_FORMAT_H_
#define AV_FORMAT_H_

#include "utils.h"

/**
 * flv format info
 */
static const uint16_t FLV_FILE_HEADER_LEN = 9; /*flv file header len*/
static const uint16_t FLV_FILE_TAG_POS_LEN = 4; /*flv file tag pos len*/
static const uint16_t FLV_FILE_TAG_HEAD_LEN = 11; /*flv file tag pos len*/
static const uint16_t FLV_TAG_HEADER_LEN = 15; /*flv tag header len,4+11=15*/

/**
 * av_format class
 */
class av_format
{
public:
        av_format(void);
        ~av_format(void);

        static int read_flv_header(int filefd ,ubyte * pbuf,size_t buf_size);};

#endif /* AV_FORMAT_H_ */
